package com.pet.item.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户浏览记录表
 * </p>
 *
 * @author Cookies
 * @since 2024-09-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("browse_history")
@ApiModel(value="BrowseHistory对象", description="用户浏览记录表")
public class BrowseHistory implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "浏览记录id，唯一标识")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户id，关联用户表")
    private Integer userId;

    @ApiModelProperty(value = "商品id，关联商品表")
    private Integer itemId;

    @ApiModelProperty(value = "停留时间(秒)")
    private Integer stayTime;

    @ApiModelProperty(value = "浏览时间")
    private LocalDateTime browsedAt;

    @ApiModelProperty(value = "浏览来源 1-直接访问 2-搜索引擎 3-推荐")
    private Integer source;


}
